<?php

$template = new STE();
$template->load('index');

if ($user->logged_in == 1) {
	$variables["NAVIGATION"] = file_get_contents(YOULOC_DATA.'/templates/logged_in.tpl');
} else {
	$variables["NAVIGATION"] = file_get_contents(YOULOC_DATA.'/templates/logged_out.tpl');
}
/*if ($user->logged_in == 1) {
	$variables["MAPSIZE"] = "small";
} else {*/
	$variables["MAPSIZE"] = "large";
//}

/*if ($user->logged_in == 1) {
	$variables["LEFTPANEL_CONTENT"] = file_get_contents(YOULOC_DATA.'/templates/leftpanel.tpl');
	$variables["BOTTOMPANEL_CONTENT"] = file_get_contents(YOULOC_DATA.'/templates/bottompanel.tpl');
} else {*/
	$variables["LEFTPANEL_CONTENT"] = "";
	$variables["BOTTOMPANEL_CONTENT"] = "";
//}

$template->assign($variables);

print $template->display();
?>
